package com.boot.interceptor;

import com.boot.result.ResultCodeNum;

public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private ResultCodeNum resultCodeNum;
    private String message;

    public BusinessException(String message, ResultCodeNum resultCodeNum) {
        super(message);
        this.resultCodeNum = resultCodeNum;
        this.message = message;
    }

    public ResultCodeNum getResultCodeNum() {
        return resultCodeNum;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
